package net.chrisrichardson.ec2deployer.core;


class SarMonitorTest extends GroovyTestCase {

	void testSarMonitor() {
        SarMonitor sarMonitor = new SarMonitor(null)

        sarMonitor.processLine "Linux 2.6.16-xenU (domU-12-31-38-00-42-36)      12/29/07"
        sarMonitor.processLine ""
        sarMonitor.processLine "12:48:26          CPU     %user     %nice   %system   %iowait    %steal     %idle"
        sarMonitor.processLine "12:48:31          all      0.00      0.00      0.00      0.00      0.00    100.00"

        assertEquals 0.0, sarMonitor.getAverageBusy()

	}

}
